package com.huawei.appgallery.serverreqkit.api.bean;

import com.huawei.appgallery.jsonkit.api.JsonBean;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import org.json.JSONException;
import org.json.JSONObject;

public abstract class BaseSecretResponse extends BaseResponseBean {
    private JsonBean bodyBean;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String body_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private int key_;

    public void fromJson(JSONObject jSONObject) throws IllegalArgumentException, IllegalAccessException, InstantiationException, ClassNotFoundException, JSONException {
        super.fromJson(jSONObject);
        if (ˏ() != null) {
            JSONObject jSONObject2 = new JSONObject(ˏ());
            if (this.bodyBean != null) {
                ˋ().fromJson(jSONObject2);
            }
        }
    }

    public String ˏ() {
        return this.body_;
    }

    public JsonBean ˋ() {
        return this.bodyBean;
    }
}
